Welcome to a number guessing game. I am thinking of a number between 1 and 100. You will be asked to guess it. I will tell you if your guess is higher or lower than the number I've chosen. You win by guessing my number!
(set: $secret to (random: 1,100))
(set: $turns to 0)
[[Guess]](set: $guess to (prompt: "What number do you guess?", "0"))
(set: $guess to (num: $guess))
(set: $turns to it + 1)
(if: $guess is > $secret)[(goto: "Too high")]
(if: $guess is < $secret)[(goto: "Too low")]
(if: $guess is $secret)[(goto: "Win")]You're too high!
[[Try again|Guess]]You're too low!
[[Try again|Guess]]You win!!
The secret number was $secret!
You took $turns turns.
[[Play again?|Start]]